package model.entity.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity
 * @date 2025/09/27
 * @description 用户信息实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class UserInfo {
    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户名称")
    private String username;

    @Schema(description = "用户手机号")
    private String phone;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "余额")
    private Double balance;

    @Schema(description = "状态：0 登入，1 退出")
    private Integer status;

    @Schema(description = "用户类型：0 普通用户，1 VIP用户，2 开发者")
    private Integer role;

    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "用户阅读时间")
    private Integer readTime;

    @Schema(description = "阅读偏好")
    private String preferenceGenre;

    @Schema(description = "优惠卷")
    private Integer coupon;

}